// 用户管理API服务
import request from '@/common/utils/request.js';

const BASE_URL = '/api/customer';

// 获取用户信息
export const getUserInfo = (customerId) => {
  return request({
    url: `${BASE_URL}/${customerId}`,
    method: 'GET'
  });
};

// 更新用户信息
export const updateUserInfo = (customerId, data) => {
  return request({
    url: `${BASE_URL}/${customerId}`,
    method: 'PATCH',
    data
  });
};
